// package hn.cch.security;
//
// import hn.cch.constant.UrlConstant;
// import org.springframework.http.HttpMethod;
// import org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter;
// import org.springframework.security.web.util.matcher.AntPathRequestMatcher;
//
// import javax.servlet.FilterChain;
// import javax.servlet.ServletException;
// import javax.servlet.ServletRequest;
// import javax.servlet.ServletResponse;
// import java.io.IOException;
//
// public class MyUsernamePasswordAuthenticationFilter extends UsernamePasswordAuthenticationFilter {
//     @Override
//     public void doFilter(ServletRequest req, ServletResponse res, FilterChain chain) throws IOException, ServletException {
//         // super.doFilter(req, res, chain);
//         AntPathRequestMatcher antPathRequestMatcher = new AntPathRequestMatcher(UrlConstant.FORM_LOGIN_URL, HttpMethod.POST.name());
//     }
// }
